package com.db.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.db.common.vo.JsonResult;
import com.db.common.vo.PageObject;
import com.db.pojo.SysLog;
import com.db.service.SysLogService;

@RestController
@RequestMapping("/log/")
public class SysLogController {
	
	@Autowired
	private SysLogService sysLogService;
	
	@RequestMapping("doFindPageObjects")
	public JsonResult doFindPageObjects(String username,Integer pageCurrent) {
		PageObject<SysLog> pageObject=sysLogService.findPageObjects(username, pageCurrent);
		return new JsonResult(pageObject);
	}
}
